﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Calculator.aspx.vb" Inherits="WebApplication1.Calculator" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <asp:TextBox ID="txtNo1" runat="server" Width="172px"></asp:TextBox>
    <asp:RangeValidator ID="RangeValidator1" runat="server" 
    ControlToValidate="txtNo1" CssClass="errorMessage" 
    ErrorMessage="Number should be between 0 and 100" MaximumValue="100" 
    MinimumValue="0" Type="Integer"></asp:RangeValidator>
    <br />
    <br />
    <asp:TextBox ID="txtNo2" runat="server" Width="171px"></asp:TextBox>
    <asp:RangeValidator ID="RangeValidator2" runat="server" 
    ControlToValidate="txtNo2" CssClass="errorMessage" 
    ErrorMessage="Number should be between 0 and 100" ForeColor="Red" 
    MaximumValue="100" MinimumValue="0" Type="Integer"></asp:RangeValidator>
    <br />
    <br />
    <asp:Button ID="bCalculate" runat="server" Height="24px" Text="Calculate" 
        Width="128px" />
    <br />
    <br />
    <asp:Label ID="Label1" runat="server"></asp:Label>
    <br />
</asp:Content>
